package com.cskaoyan.javase.object._7packing;
/**
 * 包装类型对象当中的数值类型对象以及Boolean对象(排除Void)
 * 它们之间比较对象相等(比较数值大小)
 * 不能用"==",而是用equals
 *
 * @since 21:42
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
    public static void main(String[] args) {
        Integer a = 100;
        Integer b = 100;
        System.out.println(a == b);
        System.out.println(a.equals(b));
        System.out.println("-------------");
        Integer c = 200;
        Integer d = 200;
        System.out.println(c == d);
        System.out.println(c.equals(d));
    }
}
